<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Icon
 *
 * @property int $id
 * @property string|null $unicode unicode 字符
 * @property string|null $class 类名
 * @property string|null $name 名称
 * @property int $sort 排序
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon whereClass($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon whereSort($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon whereUnicode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Icon whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class Icon extends Model
{
    protected $table = 'icons';
    protected $fillable = ['unicode','class','name','sort'];

    //对应菜单
//    public function menus()
//    {
//        return $this->hasMany('App\Models\Menu','icon_id','id');
//    }
}
